<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): CPTAnnotationHostLayer Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_annotation_host_layer.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Instance Methods</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">CPTAnnotationHostLayer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTAnnotationHostLayer" --><!-- doxytag: inherits="CPTLayer" -->
<p>A container layer for annotations.  
 <a href="interface_c_p_t_annotation_host_layer.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTAnnotationHostLayer:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_annotation_host_layer__inherit__graph.png" border="0" usemap="#_c_p_t_annotation_host_layer_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_annotation_host_layer_inherit__map" id="_c_p_t_annotation_host_layer_inherit__map">
<area shape="rect" id="node16" href="interface_c_p_t_bordered_layer.html" title="A layer with rounded corners." alt="" coords="928,89,1067,119"/><area shape="rect" id="node28" href="interface_c_p_t_plot.html" title="An abstract plot class." alt="" coords="962,253,1033,283"/><area shape="rect" id="node40" href="interface_c_p_t_plot_area.html" title="A layer representing the actual plotting area of a graph." alt="" coords="947,307,1047,338"/><area shape="rect" id="node2" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot." alt="" coords="566,253,647,283"/><area shape="rect" id="node4" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html" title="CALayer" alt="" coords="412,225,486,255"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="212,171,292,202"/><area shape="rect" id="node8" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,226,123,257"/><area shape="rect" id="node12" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot." alt="" coords="381,279,518,310"/><area shape="rect" id="node10" href="http://www.devworld.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CAMediaTiming_protocol/Introduction/Introduction.html" title="\&lt;CAMediaTiming&#45;p\&gt;" alt="" coords="172,226,332,257"/><area shape="rect" id="node18" href="interface_c_p_t_graph.html" title="An abstract graph class." alt="" coords="1152,6,1237,37"/><area shape="rect" id="node24" href="interface_c_p_t_legend.html" title="A graph legend." alt="" coords="1148,61,1241,91"/><area shape="rect" id="node26" href="interface_c_p_t_plot_area_frame.html" title="A layer drawn on top of the graph layer and behind all plot elements." alt="" coords="1125,115,1265,146"/><area shape="rect" id="node20" href="interface_c_p_t_x_y_graph.html" title="A graph using a cartesian (X&#45;Y) plot space." alt="" coords="1324,6,1426,37"/><area shape="rect" id="node22" href="interface_c_p_t_derived_x_y_graph.html" title="An empty XY graph class used for testing themes." alt="" coords="1475,6,1626,37"/><area shape="rect" id="node30" href="interface_c_p_t_bar_plot.html" title="A two&#45;dimensional bar plot." alt="" coords="1149,170,1240,201"/><area shape="rect" id="node32" href="interface_c_p_t_pie_chart.html" title="A pie chart." alt="" coords="1145,225,1245,255"/><area shape="rect" id="node34" href="interface_c_p_t_range_plot.html" title="A plot class representing a range of values in one coordinate, such as typically used to show errors..." alt="" coords="1139,279,1250,310"/><area shape="rect" id="node36" href="interface_c_p_t_scatter_plot.html" title="A two&#45;dimensional scatter plot." alt="" coords="1137,334,1252,365"/><area shape="rect" id="node38" href="interface_c_p_t_trading_range_plot.html" title="A trading range financial plot." alt="" coords="1114,389,1275,419"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTAnnotationHostLayer:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_annotation_host_layer__coll__graph.png" border="0" usemap="#_c_p_t_annotation_host_layer_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_annotation_host_layer_coll__map" id="_c_p_t_annotation_host_layer_coll__map">
<area shape="rect" id="node2" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot." alt="" coords="201,246,281,277"/><area shape="rect" id="node4" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html" title="CALayer" alt="" coords="140,166,213,197"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="5,86,85,117"/><area shape="rect" id="node8" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="117,6,235,37"/><area shape="rect" id="node12" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot." alt="" coords="238,166,375,197"/><area shape="rect" id="node10" href="http://www.devworld.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CAMediaTiming_protocol/Introduction/Introduction.html" title="\&lt;CAMediaTiming&#45;p\&gt;" alt="" coords="109,86,269,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_annotation_host_layer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7118f2ca923d0b34c7cd917cf5cdfa1"></a><!-- doxytag: member="CPTAnnotationHostLayer::addAnnotation:" ref="ae7118f2ca923d0b34c7cd917cf5cdfa1" args="(CPTAnnotation *annotation)" -->
(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_annotation_host_layer.html#ae7118f2ca923d0b34c7cd917cf5cdfa1">addAnnotation:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds an annotation to the receiver. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad748afbf51ccfb2c93e5fda2cdd6a11d"></a><!-- doxytag: member="CPTAnnotationHostLayer::removeAnnotation:" ref="ad748afbf51ccfb2c93e5fda2cdd6a11d" args="(CPTAnnotation *annotation)" -->
(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_annotation_host_layer.html#ad748afbf51ccfb2c93e5fda2cdd6a11d">removeAnnotation:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes an annotation from the receiver. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe6aabd7481a42ff239da13851c56b76"></a><!-- doxytag: member="CPTAnnotationHostLayer::removeAllAnnotations" ref="abe6aabd7481a42ff239da13851c56b76" args="()" -->
(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_annotation_host_layer.html#abe6aabd7481a42ff239da13851c56b76">removeAllAnnotations</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all annotations from the receiver. <br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6f43db8818fe93657867ceffcde6e529"></a><!-- doxytag: member="CPTAnnotationHostLayer::annotations" ref="a6f43db8818fe93657867ceffcde6e529" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html">NSArray</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_annotation_host_layer.html#a6f43db8818fe93657867ceffcde6e529">annotations</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">An array of annotations attached to this layer. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A container layer for annotations. </p>
<p>Annotations (<a class="el" href="interface_c_p_t_annotation.html" title="An annotation positions a content layer relative to some anchor point.">CPTAnnotation</a>) can be added to and removed from an annotation layer. The host layer automatically handles the annotation layout. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_annotation_host_layer_8h_source.html">CPTAnnotationHostLayer.h</a></li>
<li>Source/CPTAnnotationHostLayer.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_annotation_host_layer.html">CPTAnnotationHostLayer</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
